﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CPPEI.PM
{
    /// <summary>
    /// 工作项
    /// </summary>
    [Serializable]
    public class WorkItem
    {
        /// <summary>
        /// 编号
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Caption { get; set; }
        public string Code { get; set; }
        /// <summary>
        /// 类别编号，
        /// 管理的维度编号
        /// </summary>
        public string CategoryCode { get; set; }

        public Guid WorkItemCategoryId { get; set; }

        /// <summary>
        /// 父节点
        /// </summary>
        public WorkItem Parent { get; set; }

        /// <summary>
        /// 状态,和服务器同步时需要参考的状态
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 是否需要保存(本地)
        /// </summary>
        public bool IsNeedSave { get; set; }
    }
}
